#include "stackadaptor.h"

StackAdaptor::StackAdaptor()
{
}

std::string StackAdaptor::print(int n)const{
    std::string s("");
    int size = myStack.size();
    for(int j=0;j<size && j<n;j++)
        s += this->myStack[size-1-j]->print() + "\n";
    return s;

}
